package org.edu.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * lzh
 * 纳税人基本信息
 * TmPersoninfo entity. @author MyEclipse Persistence Tools
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "tm_personinfo")
public class TmPersoninfo implements java.io.Serializable {

	// Fields
	/**纳税人id*/
	private Integer id;
	/**纳税人识别码*/
	private String pcode;
	/**身份证号*/
	private String cardno;
	/**纳税人姓名*/
	private String taxplayer;
	/**性别*/
	private String gender;
	/**国籍*/
	private String nationality;
	/**身份证类型*/
	private String idcard;
	/**家庭住址*/
	private String address;
	/**任职*/
	private String position;
	/**单位名称*/
	private String orgname;
	/**单位地址*/
	private String orgaddress;
	/**联系方式(手机)*/
	private String phone;

	// Constructors

	/** default constructor */
	public TmPersoninfo() {
	}

	/** full constructor */
	public TmPersoninfo(String pcode, String cardno, String taxplayer,
			String gender, String nationality, String idcard, String address,
			String position, String orgname, String orgaddress, String phone) {
		this.pcode = pcode;
		this.cardno = cardno;
		this.taxplayer = taxplayer;
		this.gender = gender;
		this.nationality = nationality;
		this.idcard = idcard;
		this.address = address;
		this.position = position;
		this.orgname = orgname;
		this.orgaddress = orgaddress;
		this.phone = phone;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "pcode", nullable = false, length = 20)
	public String getPcode() {
		return this.pcode;
	}

	public void setPcode(String pcode) {
		this.pcode = pcode;
	}

	@Column(name = "cardno", nullable = false, length = 20)
	public String getCardno() {
		return this.cardno;
	}

	public void setCardno(String cardno) {
		this.cardno = cardno;
	}

	@Column(name = "taxplayer", nullable = false, length = 20)
	public String getTaxplayer() {
		return this.taxplayer;
	}

	public void setTaxplayer(String taxplayer) {
		this.taxplayer = taxplayer;
	}

	@Column(name = "gender", nullable = false, length = 2)
	public String getGender() {
		return this.gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	@Column(name = "nationality", nullable = false, length = 20)
	public String getNationality() {
		return this.nationality;
	}

	public void setNationality(String nationality) {
		this.nationality = nationality;
	}

	@Column(name = "idcard", nullable = false, length = 20)
	public String getIdcard() {
		return this.idcard;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}

	@Column(name = "address", nullable = false, length = 100)
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "position", nullable = false, length = 20)
	public String getPosition() {
		return this.position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	@Column(name = "orgname", nullable = false, length = 20)
	public String getOrgname() {
		return this.orgname;
	}

	public void setOrgname(String orgname) {
		this.orgname = orgname;
	}

	@Column(name = "orgaddress", nullable = false, length = 100)
	public String getOrgaddress() {
		return this.orgaddress;
	}

	public void setOrgaddress(String orgaddress) {
		this.orgaddress = orgaddress;
	}

	@Column(name = "phone", nullable = false, length = 20)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

}